#ifndef _STRING_H_
#define _STRING_H_

#include <CType.h>

int16_t strlen(int8_t *s);
int16_t strcmp(int8_t * s1, int8_t * s2);
int8_t * strcpy(int8_t * s1, int8_t *s2);
int8_t * strncpy(int8_t * s1, int8_t * s2, size_t n);
void * memset(void * s, int8_t c, size_t l);
int16_t memcmp(void * s1, void * s2, size_t n);
void * memcpy(void * s1, void * s2, size_t n);
int8_t * strupr(int8_t * s);
int8_t * strlwr(int8_t * s);
int8_t * strchr(int8_t * s, int16_t c);
int8_t * strcat(int8_t * s1, int8_t * s2);
int8_t * strstr(int8_t * s1, int8_t * s2);
int8_t * strtrim(int8_t * s);

int8_t chrupr(int8_t c);
int8_t chrlwr(int8_t c);

int8_t * itoh(uint16_t c);
int8_t * itoa(int16_t c);
int8_t * ltoh(uint32_t c);
int8_t * ltoa(int32_t c);

int16_t atoi(int8_t * s);
int32_t atol(int8_t * s);
int16_t htoi(int8_t * s);
int32_t htol(int8_t * s);

int16_t bcd2int(uint16_t b);

#endif _STRING_H_ /* end of _STRING_H_ */
